//
//  LCSendImageCell.m
//  安好医生端
//
//  Created by 付国强 on 14-8-15.
//  Copyright (c) 2014年 lianchuangbrother. All rights reserved.
//

#import "LCSendImageCell.h"

@implementation LCSendImageCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        
        self.iconImageView=[[UIImageView alloc] initWithFrame:CGRectMake(10, 13, 40,40)];
        self.iconImageView.backgroundColor=[UIColor whiteColor];
        [self.contentView addSubview:self.iconImageView];
        
        
        self.contentImageView=[[UIImageView alloc] initWithFrame:CGRectZero];
        self.contentImageView.userInteractionEnabled=YES;
        UITapGestureRecognizer *imageTap=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapImage:)];
        [self.contentImageView addGestureRecognizer:imageTap];
        [self.contentView addSubview: self.contentImageView];
        
        
        self.contentImageViewBg=[[UIImageView alloc] initWithFrame:CGRectZero];
        [self.contentView addSubview:self.contentImageViewBg];
        

    }
    return self;
}
- (void)tapImage:(UITapGestureRecognizer *)gesture
{
    if (self.delegate&&[self.delegate respondsToSelector:@selector(tapMessageImage:view:)]) {
        [self.delegate tapMessageImage:self.tag view:gesture.view];
    }
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
